There is no way to avoid it. You have to go through that room.
Unless you can jam the ceiling, you will die.
You have to throw something in the gears.
Something sturdy and solid.